package com.tensquare.friend.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * Created by WF on 2020/10/27 11:03
 */
@FeignClient("tensquare-user")   //参数：要调用的微服务的名称
public interface UserClient {

    //1.增加粉丝数
    @PostMapping("/user/incfans/{friendid}/{n}")
    void incFansCount(@PathVariable("friendid") String friendid, @PathVariable("n") int n);

    //2.增加关注数
    @PostMapping("/user/incfollow/{userid}/{n}")
    void incFollowCount(@PathVariable("userid") String userid, @PathVariable("n") int n);
}
